bash: fix build failed with GCC 15 #26784
authorhingbong lo <[email protected]>
Thu, 19 Jun 2025 02:32:03 +0000 (02:32 +0000)
committerJosef Schlehofer <[email protected]>
Wed, 24 Sep 2025 10:15:21 +0000 (12:15 +0200)
by applying this patch, build successfully

Signed-off-by: hingbong lo <[email protected]>
(cherry picked from commit 9672ccaf5bcbd5460aeb6ef0f344fbc5e5f3e86c)

utils/bash/Makefile

index 61aca94a4460046e0ef1e8027476f57b87386b3a..6afe72cc26b7041afc9ca01861bec74b1fe6ff4a 100644 (file)
@@ -84,6 +84,8 @@ CONFIGURE_ARGS+= \
        --enable-job-control \
        --enable-readline
 
+TARGET_CFLAGS += -std=gnu17
+
 define Package/bash/postinst
 #!/bin/sh
 grep -q bash "$${IPKG_INSTROOT}/etc/shells" || {
@@ -100,3 +102,4 @@ define Package/bash/install
 endef
 
 $(eval $(call BuildPackage,bash))
+